package day02;

import java.sql.SQLOutput;

public class lianxi02 {
    public static void main(String[] args) {
        int a;
        int b,c,d;
        int e=1,r=2,t=3,y=4;
        int g=8;
        int h=g+10;
        System.out.println(h);
        g=g+10;
        System.out.println(g);
        int a_3,$a_3,_3c;
        //int a*b;编译错误，不能应用特殊符号
        //int 年龄；可以用汉子，不建议
        int age;//建议用英文
        int myAgeScore;//小驼峰命名法
        int o=10, p=10;
        System.out.println(o/p);
        int k=1000000000,l=2000000000;
        System.out.println(k+l);//结果溢出

        long n= 18L,m=78L,v=98L;
        long a1=1000000000*2*10L;
        long a2 = 10000000000L*2*10;
        System.out.println(a1);//结果溢出
        System.out.println(a2);//结果不会溢出
        double a3=23.456,a4=45.678,a5=67.890;
        double b1=6.0,b2=4.9;
        System.out.println(b1-b2);//1.0999999999999996
        boolean c1=true;
        boolean c2= false;
        char q1='男';
        char q2='2';
        char q3 = ' ';
        char q4 ='a';
        char q5 ='\'';
        int w1=2;
        long w2 = 2;
        int w3 =(int)2;
        double r1= 2.4;
        float r2 = (float)2.4;
        byte v1=5;
        byte v2=6;
        byte v3 = (byte)(v1+v2);
        System.out.println(2+2);//2
        System.out.println(2+'2');//52
        System.out.println('2'+'2');//100



    }


}
